package lab.gene.action;

import java.util.List;

import lab.gene.pojo.PrimerSequence;
import lab.gene.service.impl.PrimerSequenceServiceImpl;

import com.opensymphony.xwork2.ActionSupport;

public class ViewPrimerListAction extends ActionSupport{
	
	private static final long serialVersionUID = 1L;
	private List<PrimerSequence> primersequences = null;
	
	String geneName = null;
	public String execute() {
		PrimerSequenceServiceImpl primerService = new PrimerSequenceServiceImpl();
		primersequences = primerService.getAllPrimerSequencesByGeneName(geneName);
		//System.out.println("=="+primersequences.size());
		return "success";
	}
	public String getGeneName() {
		return geneName;
	}
	public void setGeneName(String geneName) {
		this.geneName = geneName;
	}
	public List<PrimerSequence> getPrimersequences() {
		return primersequences;
	}
	public void setPrimersequences(List<PrimerSequence> primersequences) {
		this.primersequences = primersequences;
	}
	
	

}
